<?php
Route::group(['prefix' => 'casts', 'namespace' => 'Casts', 'as' => 'casts.'], function () {
    //课程分类
    Route::group(['prefix' => 'category'], function () {
        Route::patch('sort_order', 'CategoryController@sort_order')->name('category.sort_order');
        Route::get('index_list', 'CategoryController@index_list')->name('category.index_list');
    });
    Route::resource('category', 'CategoryController');

    //课程章节
    Route::patch('episode/sort_order', 'EpisodeController@sort_order')->name('episode.sort_order');
    Route::resource('episode', 'EpisodeController');
});